﻿package com.peachcastle.events  
{
	import flash.events.Event;
	
	public class SeatEvent extends Event 
	{	
		public static const SEAT_DOWN:String = "seat_down";
		public static const SEAT_START_GAME:String = "seat_start_game";
		public static const SEAT_BASE_POUR:String = "seat_base_pour";
		public static const SEAT_POUR:String = "seat_pour";
		public static const START_PK:String = "start_pk";

		/**
		 * 坐位ID;
		 */
		public var seatid:int;
		
		public var isSelf:Boolean = false;
		
		public var state:int;
		
		public var message:String;
		
		public var uid:int;
		
		public function SeatEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			
		} 
		
		public override function clone():Event 
		{ 
			return new SeatEvent(type, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("SeatEvent", "type", "bubbles", "cancelable", "eventPhase", "seatid"); 
		}
		
	}
	
}